package net.lucamasini.ricette.client.ricette;

import java.util.List;

import net.lucamasini.ricette.server.RicetteServiceLocator;
import net.lucamasini.ricette.server.RicetteServiceServlet;

import com.google.gwt.requestfactory.shared.Request;
import com.google.gwt.requestfactory.shared.RequestContext;
import com.google.gwt.requestfactory.shared.Service;

@Service(value = RicetteServiceServlet.class, locator = RicetteServiceLocator.class)
public interface RicetteRequest extends RequestContext {
	Request<RicettaProxy> findRicetta(String key);
	Request<Void> salvaRicetta(RicettaProxy ricetta, List<IngredientiRicettaProxy> ir);
	Request<List<RicettaProxy>> findAllRicette();
	Request<Void> remove(RicettaProxy ricetta);
}
